<html>
<head>
<title></title>
</head>

<body onload="blank();">
	<form method="post" name="login" id="login" action="">
	<table border="0" align="center">
		<tr>
			<td colspan="2" align="center">Login</td>
		</tr>
		<tr>
			<td>Username : </td>
			<td><input type="text" name="username" id="username"></td>
		</tr>
		<tr>
			<td>Password : </td>
			<td><input type="password" name="pwd" id="pwd"></td>
		</tr>
		<tr>
			<td colspan="2" align="center">
				<input type="submit" name="submit" value="Submit" onclick="return check();">
				<input type="reset" name="reset" value="Reset">
			</td>
		</tr>
	</table>
	</form>
	
	<script type="text/javascript">
		function check(){
			if(document.getElementById("username").value == ""){
				alert("Username can not null");
				return false;
			}
			if(document.getElementById("pwd").value == ""){
				alert("Password can not null");
				return false
			}
			else{
				return true;
			}
		}
		function blank(){
			//var txt_username = "<font color="#999999" size="3">Username</font>";
			//var txt_pwd = "<font color="#999999" size="3">Password</font>";

			if(document.getElementById("username").value == ""){
				document.getElementById("username").value = "Username";
			}
			//if(document.getElementById("pwd").value == ""){
				//document.getElementById("pwd").value = txt_pwd;
			//}

			alert("OK");
		}
	</script>
	
	
</body>
</html>